﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F71 RID: 3953
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicSetAutoDressInMagicUnitCsReq : IMessage<RogueMagicSetAutoDressInMagicUnitCsReq>, IMessage, IEquatable<RogueMagicSetAutoDressInMagicUnitCsReq>, IDeepCloneable<RogueMagicSetAutoDressInMagicUnitCsReq>, IBufferMessage
	{
		// Token: 0x17003224 RID: 12836
		// (get) Token: 0x0600B12B RID: 45355 RVA: 0x001DEEC5 File Offset: 0x001DD0C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicSetAutoDressInMagicUnitCsReq> Parser
		{
			get
			{
				return RogueMagicSetAutoDressInMagicUnitCsReq._parser;
			}
		}

		// Token: 0x17003225 RID: 12837
		// (get) Token: 0x0600B12C RID: 45356 RVA: 0x001DEECC File Offset: 0x001DD0CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicSetAutoDressInMagicUnitCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003226 RID: 12838
		// (get) Token: 0x0600B12D RID: 45357 RVA: 0x001DEEDE File Offset: 0x001DD0DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicSetAutoDressInMagicUnitCsReq.Descriptor;
			}
		}

		// Token: 0x0600B12E RID: 45358 RVA: 0x001DEEE5 File Offset: 0x001DD0E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicSetAutoDressInMagicUnitCsReq()
		{
		}

		// Token: 0x0600B12F RID: 45359 RVA: 0x001DEEED File Offset: 0x001DD0ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicSetAutoDressInMagicUnitCsReq(RogueMagicSetAutoDressInMagicUnitCsReq other) : this()
		{
			this.enableAutoDress_ = other.enableAutoDress_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B130 RID: 45360 RVA: 0x001DEF12 File Offset: 0x001DD112
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicSetAutoDressInMagicUnitCsReq Clone()
		{
			return new RogueMagicSetAutoDressInMagicUnitCsReq(this);
		}

		// Token: 0x17003227 RID: 12839
		// (get) Token: 0x0600B131 RID: 45361 RVA: 0x001DEF1A File Offset: 0x001DD11A
		// (set) Token: 0x0600B132 RID: 45362 RVA: 0x001DEF22 File Offset: 0x001DD122
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool EnableAutoDress
		{
			get
			{
				return this.enableAutoDress_;
			}
			set
			{
				this.enableAutoDress_ = value;
			}
		}

		// Token: 0x0600B133 RID: 45363 RVA: 0x001DEF2B File Offset: 0x001DD12B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicSetAutoDressInMagicUnitCsReq);
		}

		// Token: 0x0600B134 RID: 45364 RVA: 0x001DEF39 File Offset: 0x001DD139
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicSetAutoDressInMagicUnitCsReq other)
		{
			return other != null && (other == this || (this.EnableAutoDress == other.EnableAutoDress && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B135 RID: 45365 RVA: 0x001DEF68 File Offset: 0x001DD168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EnableAutoDress)
			{
				num ^= this.EnableAutoDress.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B136 RID: 45366 RVA: 0x001DEFA7 File Offset: 0x001DD1A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B137 RID: 45367 RVA: 0x001DEFAF File Offset: 0x001DD1AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B138 RID: 45368 RVA: 0x001DEFB8 File Offset: 0x001DD1B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EnableAutoDress)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.EnableAutoDress);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B139 RID: 45369 RVA: 0x001DEFEC File Offset: 0x001DD1EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EnableAutoDress)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B13A RID: 45370 RVA: 0x001DF01E File Offset: 0x001DD21E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicSetAutoDressInMagicUnitCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EnableAutoDress)
			{
				this.EnableAutoDress = other.EnableAutoDress;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B13B RID: 45371 RVA: 0x001DF04F File Offset: 0x001DD24F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B13C RID: 45372 RVA: 0x001DF058 File Offset: 0x001DD258
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.EnableAutoDress = input.ReadBool();
				}
			}
		}

		// Token: 0x040047BA RID: 18362
		private static readonly MessageParser<RogueMagicSetAutoDressInMagicUnitCsReq> _parser = new MessageParser<RogueMagicSetAutoDressInMagicUnitCsReq>(() => new RogueMagicSetAutoDressInMagicUnitCsReq());

		// Token: 0x040047BB RID: 18363
		private UnknownFieldSet _unknownFields;

		// Token: 0x040047BC RID: 18364
		public const int EnableAutoDressFieldNumber = 1;

		// Token: 0x040047BD RID: 18365
		private bool enableAutoDress_;
	}
}
